// import Vue from 'vue'
// import Router from 'vue-router'
// 首页
const home = resolve => require(['@/page/home/home.vue'], resolve)
// 资讯
const news = resolve => require(['@/page/news/news.vue'], resolve)
// 咨讯详情
const newsDetail = resolve => require(['@/page/news/newsDetail.vue'], resolve)
// 资产
const assets = resolve => require(['@/page/assets/assets.vue'], resolve)
// 行情  待定
//
// 我的
const mine = resolve => require(['@/page/mine/mine.vue'], resolve)

// 注册登录
const reg = resolve => require(['@/page/login/reg.vue'], resolve)
const login = resolve => require(['@/page/login/login.vue'], resolve)
// 行情
const quotation = resolve => require(['@/page/quotation/quotation.vue'], resolve)
const quotationInfo = resolve => require(['@/page/quotation/quotationInfo.vue'], resolve)
const quotationTrade = resolve => require(['@/page/quotation/quotationTrade.vue'], resolve)
const quotationHistory = resolve => require(['@/page/quotation/quotationHistory.vue'], resolve)
const quotationDetail = resolve => require(['@/page/quotation/quotationDetail.vue'], resolve)
const quotationInfoHuobi = resolve => require(['@/page/quotation/quotationInfoHuobi.vue'], resolve)
const quotationTradeHuobi = resolve => require(['@/page/quotation/quotationTradeHuobi.vue'], resolve)
const quotationHistoryHuobi = resolve => require(['@/page/quotation/quotationHistoryHuobi.vue'], resolve)
const quotationDetailHuobi = resolve => require(['@/page/quotation/quotationDetailHuobi.vue'], resolve)
// 充值
const recharge = resolve => require(['@/page/mine/recharge.vue'], resolve)
// 充币
const rechargeCoin = resolve => require(['@/page/mine/rechargeCoin.vue'], resolve)
// 购买币
const buy = resolve => require(['@/page/buy.vue'], resolve)
// 提币 提现
const withdrawDeposit = resolve => require(['@/page/mine/withdrawDeposit.vue'], resolve)
// 划转
const withdrawMoney = resolve => require(['@/page/mine/withdrawMoney.vue'], resolve)
//基金转入/转出
const withFundInto = resolve => require(['@/page/mine/withFundInto.vue'], resolve)
const withFundTransfer = resolve => require(['@/page/mine/withFundTransfer.vue'], resolve)
// 其他
const myWallet = resolve => require(['@/page/mine/myWallet.vue'], resolve)
const financialProduct = resolve => require(['@/page/mine/financialProduct.vue'], resolve)
const earningsList = resolve => require(['@/page/mine/earningsList.vue'], resolve)//收益列表
const afterPsw = resolve => require(['@/page/mine/afterPsw.vue'], resolve)
const invite = resolve => require(['@/page/mine/invite.vue'], resolve)
const myCode = resolve => require(['@/page/mine/myCode.vue'], resolve)
const about = resolve => require(['@/page/mine/about.vue'], resolve)
const downloadAPP = resolve => require(['@/page/mine/downloadAPP.vue'], resolve)
const bindEmail = resolve => require(['@/page/mine/bindEmail.vue'], resolve)
// 理财详情
const productDetails = resolve => require(['@/page/mine/productDetails.vue'], resolve)
//基金详情
const fundDetails = resolve => require(['@/page/mine/fundDetails.vue'], resolve)
const vcList = resolve => require(['@/page/mine/vcList.vue'], resolve)
// 激活理财
const reservation = resolve => require(['@/page/mine/reservation.vue'], resolve)

// ____


const order = resolve => require(['@/page/order/order.vue'], resolve)
const orderDetail = resolve => require(['@/page/order/orderDetail.vue'], resolve)
const emailReg = resolve => require(['@/page/login/emailReg.vue'], resolve)
const certification = resolve => require(['@/page/mine/certification.vue'], resolve)
const download = resolve => require(['@/page/mine/download.vue'], resolve)
const forget = resolve => require(['@/page/login/forget.vue'], resolve)
const dailyProfit = resolve => require(['@/page/dailyProfit.vue'], resolve)
const act = resolve => require(['@/page/act.vue'], resolve)
const speed = resolve => require(['@/page/speed.vue'], resolve)
const redemption = resolve => require(['@/page/mine/redemption.vue'], resolve)
const music = resolve => require(['@/page/mine/music.vue'], resolve)
const musicPoster = resolve => require(['@/page/mine/musicPoster.vue'], resolve)
const help = resolve => require(['@/page/help.vue'], resolve)


//测试页
const test = resolve => require(['@/page/test.vue'], resolve)

// Vue.use(Router)
export default new VueRouter({
  // mode: 'history',
  routes: [{
      path: '/',
      name: 'GCC',
      redirect: '/home',
    },
    {
      path: "/test",
      name: 'test',
      component: test,
    },
    {
      path: "/home",
      name: 'home',
      component: home,
    },
    {
      path: "/quotation",
      name: 'quotation',
      component: quotation,
    },
    {
      path: "/order",
      name: 'order',
      component: order,
      meta: {
        needLogin: true
      }
    },
    {
      path: "/orderDetail",
      name: 'orderDetail',
      component: orderDetail,
    },
    {
      path: "/mine",
      name: 'mine',
      component: mine,
    },
    {
      path: "/reg",
      name: 'reg',
      component: reg,
    },
    {
      path: "/emailReg",
      name: 'emailReg',
      component: emailReg,
    },
    {
      path: "/login",
      name: 'login',
      component: login,
    },
    {
      path: "/afterPsw",
      name: 'afterPsw',
      component: afterPsw,
    },
    {
      path: "/certification",
      name: 'certification',
      component: certification,
    },
    {
      path: "/withdrawDeposit",
      name: 'withdrawDeposit',
      component: withdrawDeposit,
    },
    {
      path: "/invite",
      name: 'invite',
      component: invite,
    },
    {
      path: "/myCode",
      name: 'myCode',
      component: myCode,
    },
    {
      path: "/download",
      name: 'download',
      component: download,
    },
    {
      path: "/about",
      name: 'about',
      component: about,
    },
    {
      path: "/recharge",
      name: 'recharge',
      component: recharge,
    },
    {
      path: "/rechargeCoin",
      name: 'rechargeCoin',
      component: rechargeCoin,
    },
    {
      path: "/myWallet",
      name: 'myWallet',
      component: myWallet,
    },
    {
      path: "/forget",
      name: 'forget',
      component: forget,
    },
    {
      path: "/withdrawMoney",
      name: 'withdrawMoney',
      component: withdrawMoney,
    },
    {
      path: "/withFundInto",
      name: 'withFundInto',
      component: withFundInto,
    },
     {
      path: "/withFundTransfer",
      name: 'withFundTransfer',
      component: withFundTransfer,
    },
    {
      path: "/dailyProfit",
      name: 'dailyProfit',
      component: dailyProfit,
    },
    {
      path: "/act",
      name: 'act',
      component: act,
    },
    {
      path: "/buy",
      name: 'buy',
      component: buy,
    },
    {
      path: "/speed",
      name: 'speed',
      component: speed,
    },
    {
      path: "/productDetails",
      name: 'productDetails',
      component: productDetails,
    },
    {
      path: "/fundDetails",
      name: 'fundDetails',
      component: fundDetails,
    },
    {
      path: "/reservation",
      name: 'reservation',
      component: reservation,
    },
    {
      path: "/financialProduct",
      name: 'financialProduct',
      component: financialProduct,
    },
    {
      path: "/earningsList",
      name: 'earningsList',
      component: earningsList,
    },
    {
      path: "/redemption",
      name: 'redemption',
      component: redemption,
    },
    {
      path: "/downloadAPP",
      name: 'downloadAPP',
      component: downloadAPP,
    },
    {
      path: "/music",
      name: 'music',
      component: music,
    },
    {
      path: "/musicPoster",
      name: 'musicPoster',
      component: musicPoster,
    },
    {
      path: "/assets",
      name: 'assets',
      component: assets,
    },
    {
      path: "/news",
      name: 'news',
      component: news,
    },
    {
      path: "/newsDetail",
      name: 'newsDetail',
      component: newsDetail,
    },
    {
      path: "/help",
      name: 'help',
      component: help,
    },
    {
      path: '/vcList',
      name: 'vcList',
      component: vcList
    },
    {
      path: '/bindEmail',
      name: 'bindEmail',
      component: bindEmail
    },
    {
      path: '/quotationDetailHuobi',
      name: 'quotationDetailHuobi',
      component: quotationDetailHuobi
    },
    {
      path: '/quotationHistoryHuobi',
      name: 'quotationHistoryHuobi',
      component: quotationHistoryHuobi
    },
    {
      path: '/quotationTradeHuobi',
      name: 'quotationTradeHuobi',
      component: quotationTradeHuobi
    },
    {
      path: '/quotationInfoHuobi',
      name: 'quotationInfoHuobi',
      component: quotationInfoHuobi
    },
    {
      path: '/quotationInfo',
      name: 'quotationInfo',
      component: quotationInfo
    },
    {
      path: '/quotationTrade',
      name: 'quotationTrade',
      component: quotationTrade
    },
    {
      path: '/quotationHistory',
      name: 'quotationHistory',
      component: quotationHistory
    },
    {
      path: '/quotationDetail',
      name: 'quotationDetail',
      component: quotationDetail
    },
  ]
})
